<?php
/**
 * User preferences
 * 
 * Template for showing user's info
 * 
 * @category Abovo
 * 
 * @package Abovo_App_System
 * 
 * @subpackage Abovo_App_Systen_Prefs
 * 
 * @license http://opensource.org/licenses/gpl-license.php GPL
 * 
 * @author Antti Holvikari <anttih@gmail.com>
 */
?>
<h3><?php echo $this->getText('APP_ACTION_INFO') ?></h3>
<ul class="actions">
    <li class="first"><?php echo $this->action('system/prefs/info', $this->getText('ACTION_EDIT')) ?></li>
    <li><a href="<?php echo $this->action('system/prefs/password') ?>"><?php echo $this->getText('APP_ACTION_PASSWORD') ?></a></li>
</ul>
<table class="list">
    <tr>
        <th><?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_LASTNAME') ?></th>
        <td><b><?php echo $this->escape($this->info->lastname) ?></b></td>
    </tr>
    <tr>
        <th><?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_FIRSTNAME') ?></th>
        <td><b><?php echo $this->escape($this->info->firstname) ?></b></td>
    </tr>
    <tr>
        <th><?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_EMAIL') ?></th>
        <td><a href="mailto: <?php echo $this->escape($this->info->email) ?>"><?php echo $this->escape($this->info->email) ?></a></td>
    </tr>
    <tr>
        <th><?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_TEL') ?></th>
        <td><?php echo $this->escape($this->info->tel) ?></td>
    </tr>
    <tr>
        <th><?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_ADR') ?></th>
        <td><?php echo $this->escape($this->info->adr) ?></td>
    </tr>
    <tr>
        <th><?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_POSTAL_CODE') ?></th>
        <td><?php echo $this->escape($this->info->postal_code) ?></td>
    </tr>
    <tr>
        <th><?php echo Solar::$locale->fetch('Abovo_Model_Contacts', 'LABEL_CITY') ?></th>
        <td><?php echo $this->escape($this->info->city) ?></td>
    </tr>
    <tr>
        <th><?php echo $this->getText('Abovo_Model_Contacts::LABEL_COUNTRY') ?></th>
        <td><?php echo $this->getText("Lux_Intl::COUNTRY_{$this->info->country}") ?></td>
    </tr>
    <tr>
        <th><?php echo $this->getText('Abovo_Model_Company::LABEL_UPDATED') ?></th>
        <td><?php echo $this->timestamp($this->info->updated, $this->getText('FORMAT_TIMESTAMP')) ?></td>
    </tr>
</table>